package com.api.shopapi.service.impl;

import com.api.shopapi.entity.DishesPlanNight;
import com.api.shopapi.mapper.DishesPlanNightMapper;
import com.api.shopapi.service.DishesPlanNightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DishesPlanNightServiceImplOne")
public class DishesPlanNightServiceImplOne implements DishesPlanNightService {

    @Autowired
    private DishesPlanNightMapper dishesPlanNightMapper;

    @Override
    public
    int insert(DishesPlanNight dishesPlanNight){
        return dishesPlanNightMapper.insert(dishesPlanNight);
    }

    @Override
    public
    int delete( String dishesPlanNightCode){
        return dishesPlanNightMapper.delete(dishesPlanNightCode);
    }

    @Override
    public
    int update(DishesPlanNight dishesPlanNight){
        return dishesPlanNightMapper.update(dishesPlanNight);
    }

    @Override
    public
    DishesPlanNight getByDishesPlanNightCode(String dishesPlanNightCode){
        return dishesPlanNightMapper.getByDishesPlanNightCode(dishesPlanNightCode);
    }

    @Override
    public
    List<DishesPlanNight> ListByDishesPlanCode(String dishesPlanCode){
        return dishesPlanNightMapper.ListByDishesPlanCode(dishesPlanCode);
    }


}
